#pragma once
#include "DrawActionBase.h"
#include "Resource.h"
#include "IPipelineBindable.h"
#include "Enums.h"
#include "Texture.h"

class FramebufferDrawAction : public DrawActionBase , public Resource , public IPipelineBindable
{
	unsigned int fbo;
public:
	FramebufferDrawAction(void);
	~FramebufferDrawAction(void);

	void Dispose();
	void Bind();
	void Unbind();

	void AttachTextureToColorChanel(Texture * texture,unsigned short slot);
	void AttachTextureToDepthChanel(Texture * texture);
};

